package com.xiaoxu.media;


import com.spring4all.swagger.EnableSwagger2Doc;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@EnableSwagger2Doc
@EnableTransactionManagement
@Slf4j
@SpringBootApplication(scanBasePackages = {"com.xiaoxu.media","com.xiaoxu.base"})
public class MediaApplication {
	public static void main(String[] args) {
		ConfigurableApplicationContext ctx = SpringApplication.run(MediaApplication.class, args);
		log.info("\n"+"\t\t\t\t******************************************"+"\n"+"\t\t\t\t**\t贝壳学堂- {} 模块项目启动成功" +
						"\t**"+"\n\t\t\t\t**\t\t\t贝壳学堂-版本v1.0测试版\t\t**"+"\n\t\t\t\t**\t贝壳学堂-系统配置模块端口号: {}" +
						"\t\t**"+"\n\t\t\t\t******************************************"
				,ctx.getEnvironment().getProperty("spring.application.name")
				,ctx.getEnvironment().getProperty("server.port"));
	}
}